package com.coocaa.ops.admin.v1.timedtask.model;

import lombok.Data;

import java.util.List;

/**
 * @author bijiahao
 * @date : 2019/8/7.
 * @description quartz 定时器信息
 *
 */
@Data
public class QuartzSchedulerModel {
    /**
     * 名称
     */
    private String schedulerName;
    /**
     * job组名称
     */
    private List<String> jobGroupNames;
    /**
     * trigger组名称
     */
    private List<String> triggerGroupNames;
    /**
     * 当前的执行jobs信息
     */
    private List<JobInfoModel> currentlyExecutingJobs;

    public QuartzSchedulerModel(String schedulerName, List<String> jobGroupNames, List<String> triggerGroupNames, List<JobInfoModel> currentlyExecutingJobs) {
        this.schedulerName = schedulerName;
        this.jobGroupNames = jobGroupNames;
        this.triggerGroupNames = triggerGroupNames;
        this.currentlyExecutingJobs = currentlyExecutingJobs;
    }
}
